package cn.bb.bbstudy.service;

import cn.bb.bbstudy.pojo.Question;
import com.github.pagehelper.Page;

public interface QuestionService{


    int deleteByPrimaryKey(Integer id);

    int insert(Question record);

    int insertSelective(Question record);

    Question selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(Question record);

    int updateByPrimaryKey(Question record);

    Page<Question> findAllDesc();

    Page<Question> findAllByCIdDesc(Integer cid);

    Question findOneByQid(String qid);

    int count(String uid);

    Page<Question> findAllByUidDesc(String uid);
}
